package com.foreknow.oppExer1.exer8;

/**
 * @author shkstart
 * @create 2021-07-28 14:32
 */
public class E {
    public static void main(String[] args) {
        graduate g1=new graduate("张三","男",25,50000,6000);
        double salaryYear=g1.getPay()*12;
        System.out.println(salaryYear);
        if(salaryYear-g1.getFee()<2000){
            System.out.println("provide a loan(需要贷款)");
        }else {
            System.out.println("不需贷款");
        }
    }
}
